package com.school.cloud.controller;

import com.school.cloud.domain.CommonResult;
import com.school.cloud.domain.Order;
import com.school.cloud.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 功能描述：
 *
 * @Package: com.school.cloud.controller
 * @author: Marvin-zl
 * @date: 2022/5/16 12:25
 */
@RestController
public class OrderController {
    @Resource
    private OrderService orderService;

    @GetMapping("/order/create")
    public CommonResult create(Order order){
        orderService.create(order);
        return new CommonResult(200,"success!!!");
    }
}
